:javascript
  languages = #{@languages};
  classes = #{@classes};

%h1 Individual Signup

%form#signupform(method="POST")
  %table
    %tr
      %td
        %label(for="userinput") Username (*)
      %td
        %input(id="userinput" type="text" name="user")
      %td.error#userok
        %div
      %td.errormsg#userokerror The username can't be empty and can only include letters, numbers, dashes and underscores
    %tr
      %td
        %label(for="passinput") Password (*)
      %td
        %input(id="passinput" type="password" name="pass")
      %td.error#passok
        %div
      %td.errormsg#passokerror Your password must be 8-80 characters long
    %tr
      %td
        %label(for="pass2input") Confirm Password (*)
      %td
        %input(id="pass2input" type="password" name="pass2")
      %td.error#pass2ok
        %div
      %td.errormsg#pass2okerror Your passwords don't match
    %tr
      %td
        %label(for="nameinput") Real Name (*)
      %td
        %input(id="nameinput" type="text" name="realname")
      %td.error#realnameok
        %div
      %td.errormsg#realnameokerror You need to enter your real name
    %tr
      %td
        %label(for="emailinput") Email (*)
      %td
        %input(id="emailinput" type="text" name="email")
      %td.error#emailok
        %div
      %td.errormsg#emailokerror You need to enter a valid e-mail
    %tr
      %td
        %label(for="langselect") Language
      %td
        %select(id="langselect" name="lang")
    %tr
      %td
        %label(for="classselect") Class
      %td
        %select(id="classselect" name="username")
    %tr
      %td
        %label(for="codeinput") Purchase Code
      %td
        %input(id="codeinput" type="text" name="code")
    %tr
      %td(colspan="3")
        You need to buy a license <a>here</a> then enter the code you received in the box above <br />
        before you can sign up properly. Sorry about the hassle, we're working on a better way.
    %tr
      %td
        %input#submitbtn(type="button" value="Sign up!")
